<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Insert title here</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Expires" content="0">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-store,no-cache"> 
<meta name="Handheldfriendly" content="true">
<meta name="viewport" content="width=100%; initial-scale=1.0; user-scalable=yes">
<link href="css/css.css" rel="stylesheet" type="text/css"/>
<link href="css/easyui.css" rel="stylesheet" type="text/css"/>
<link href="css/index.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" charset="utf-8" src="js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" charset="utf-8" src="js/jquery.easyui.min.js"></script>
<script type="text/javascript" charset="utf-8" src="js/jquery.parser.js"></script>
<script type="text/javascript" charset="utf-8" src="js/my97/WdatePicker.js"></script>
<script type="text/javascript" charset="utf-8" src="js/datekj.js"></script>
<script type="text/javascript" language="javascript">
$(function(){
//是否健康教育的js控制
	$("input[name='iWeatherHealthEducation']").click(function(event){
		if($(this).attr('checked')==true){
			$("#trsHearthyContent").show(); 
		}else{
			$("#trsHearthyContent").hide(); 
			$("#sWeatherHealthEducationContent").val("");
		}
	});
	//选择健康指导	
	$('#divChoseJianKangZhiDao').dialog({
		closed:true,
		modal:true ,
			buttons:[
			{
				text:"<font size='4'>确定</font>",
				iconCls:'icon-ok',
				handler:function(){
					var content = "";
					$("input[name='JianKangZhidaoContentCode']:checked").each(function(i) {
						var id = $(this).attr("id");
					    content += $("#JianKangZhiDao"+id).html()+'\r';
					});
					$("#sWeatherHealthEducationContent").text(content)	
					$('#divChoseJianKangZhiDao').dialog('close');
				}
			},
			{
				text:"<font size='4'>返回</font>",
				iconCls:'icon-back',
				handler:function(){
					$('#divChoseJianKangZhiDao').dialog('close');
				}
			}
		],
		onClose:function(){
		}
	});
//选择行为干预	
	$('#divChoseZhongYiBaoJian').dialog({
		closed:true,
		modal:true ,
			buttons:[
			{
				text:"<font size='4'>确定</font>",
				iconCls:'icon-ok',
				handler:function(){
					var content = "";
					$("input[name='BaoJianZhidaoContentCode']:checked").each(function(i) {
						var id = $(this).attr("id");
					    content += $("#ZhongYiBaoJian"+id).html()+'\r';
					});
					$("#BaoJianZhidaoContent").text(content)	
					$('#divChoseZhongYiBaoJian').dialog('close');
				}
			},
			{
				text:"<font size='4'>返回</font>",
				iconCls:'icon-back',
				handler:function(){
					$('#divChoseZhongYiBaoJian').dialog('close');
				}
			}
		],
		onClose:function(){
		}
	});
})
//计算出当前体质指数
function getBodyMassIndex1(){
	if(""!=$("#dWeight1").val() && ""!=$("#txtdHeight").val()){
		var dWeight1 = parseInt($("#dWeight1").val());
		var txtdHeight = parseInt($("#txtdHeight").val())/100;
		var dBodyMassIndex1 = dWeight1/(txtdHeight*txtdHeight);
		$("#dBodyMassIndex1").val(parseInt(dBodyMassIndex1));
	}
}
//计算出目标体质指数
function getBodyMassIndex2(){
	if(""!=$("#dWeight2").val() && ""!=$("#txtdHeight").val()){
		var dWeight2 = parseInt($("#dWeight2").val());
		var txtdHeight = parseInt($("#txtdHeight").val())/100;
		var dBodyMassIndex2 = dWeight2/(txtdHeight*txtdHeight);
		$("#dBodyMassIndex2").val(parseInt(dBodyMassIndex2));
	}
}
//绑定药物不良反应的js控制
function changesDrugReactionCode(selObj) {
	var selectd = selObj.options[selObj.selectedIndex].value;
	if('2'==selectd){
			$("#sDrugReactionOther").show(); 
		}else{
			$("#sDrugReactionOther").hide(); 
			$("#sDrugReactionOther").val("");
		}
}
//其他单位
function showDanWeiQt1(selObj){
	var selectd = selObj.options[selObj.selectedIndex].value;
	if('99'==selectd){
		$("#sDrug_qitadw1").show(); 
	}else{
		$("#sDrug_qitadw1").hide(); 
		$("#sDrug_qitadw1").val("");
	}
}
function showDanWeiQt2(selObj){
	var selectd = selObj.options[selObj.selectedIndex].value;
	if('99'==selectd){
		$("#sDrug_qitadw2").show(); 
	}else{
		$("#sDrug_qitadw2").hide(); 
		$("#sDrug_qitadw2").val("");
	}
}
function showDanWeiQt3(selObj){
	var selectd = selObj.options[selObj.selectedIndex].value;
	if('99'==selectd){
		$("#sDrug_qitadw3").show(); 
	}else{
		$("#sDrug_qitadw3").hide(); 
		$("#sDrug_qitadw3").val("");
	}
}
 //显示选择健康指导的弹出层
function ChoseJianKangZhiDao() {
	$("#divChoseJianKangZhiDao").window('open');
}

 //显示选择行为干预的弹出层
function ChoseZhongYiBaoJian() {
	$("#divChoseZhongYiBaoJian").window('open');
}
//初始化显示
function showHtml(jsondata,jsondata2,ishuixian){
	var jsonobjs = eval('(' + jsondata + ')');//JSONObject格式的用此解析---初始化
	for(var i=0; i<jsonobjs.VisitingTypes.length; i++){//随访方式
		$('#sVisitingTypeCode').append("<option value='"+jsonobjs.VisitingTypes[i].itemCode+"'>"+jsonobjs.VisitingTypes[i].itemName+"</option>");
	}
	for(var i=0; i<jsonobjs.Symptoms.length; i++){//症状
		$('#sSymptomOther').before("<input type='checkbox' class='csszz' name='sSymptomCode' value='"+jsonobjs.Symptoms[i].itemCode+"'/><span style='font-size:18px;'>"+jsonobjs.Symptoms[i].itemName+"</span>");
	}
	for(var i=0; i<jsonobjs.Arteriopalmus.length; i++){//足背动脉搏动
		$('#sArteriopalmusCode').append("<option value='"+jsonobjs.Arteriopalmus[i].itemCode+"'>"+jsonobjs.Arteriopalmus[i].itemName+"</option>");
	}
	for(var i=0; i<jsonobjs.PsychplogicalRecovers.length; i++){//心理调整
		$('#sPsychplogicalRecoveryCode').append("<option value='"+jsonobjs.PsychplogicalRecovers[i].itemCode+"'>"+jsonobjs.PsychplogicalRecovers[i].itemName+"</option>");
	}
	for(var i=0; i<jsonobjs.PsychplogicalRecovers.length; i++){//遵医行为
		$('#sCompianceCode').append("<option value='"+jsonobjs.PsychplogicalRecovers[i].itemCode+"'>"+jsonobjs.PsychplogicalRecovers[i].itemName+"</option>");
	}
	for(var i=0; i<jsonobjs.DrugCompliances.length; i++){//药物服从性
		$('#sDrugComplianceCode').append("<option value='"+jsonobjs.DrugCompliances[i].itemCode+"'>"+jsonobjs.DrugCompliances[i].itemName+"</option>");
	}
	for(var i=0; i<jsonobjs.DrugReactions.length; i++){//药物不良反应
		$('#sDrugReactionCode').append("<option value='"+jsonobjs.DrugReactions[i].itemCode+"'>"+jsonobjs.DrugReactions[i].itemName+"</option>");
	}
	for(var i=0; i<jsonobjs.Hypoglycemia.length; i++){//低血糖反应
		$('#sHypoglycemiaCode').append("<option value='"+jsonobjs.Hypoglycemia[i].itemCode+"'>"+jsonobjs.Hypoglycemia[i].itemName+"</option>");
	}
	for(var i=0; i<jsonobjs.VisitingClassifys.length; i++){//此次随访分类
		$('#sVisitingClassifyCode').append("<option value='"+jsonobjs.VisitingClassifys[i].itemCode+"'>"+jsonobjs.VisitingClassifys[i].itemName+"</option>");
	}
	for(var i=0; i<jsonobjs.DoctorList.length; i++){//医生列表
		$('#sVisitingDoctor').append("<option value='"+jsonobjs.DoctorList[i].sPersonName+"'>"+jsonobjs.DoctorList[i].sPersonName+"</option>");
	}
	if(jsonobjs.sName!="")
		$("#sName").val(jsonobjs.sName);
	if(jsonobjs.sNo!="")
		$("#sNo").val(jsonobjs.sNo);
	$("#dVisitingDate").val(jsonobjs.dVisitingDate);
	$("#dNextVisitingDate").val(jsonobjs.dNextVisitingDate);
	$("#sNextVisitingPlace").val(jsonobjs.sNextVisitingPlace);
	$("#sVisitingDoctor").val(jsonobjs.sVisitingDoctor);
//绑定症状的js控制	
	$("input[name='sSymptomCode']").live("click", function(){
		if('1'==$(this).val()){
			if($(this).attr('checked')==true){
				$("input[name='sSymptomCode'][value!='1']").each(function() {
					$(this).attr("checked",false);
				});
				$("#sSymptomOther").css('display','none'); 
				$("#sSymptomOther").val("");
			}
		}else{
			if($(this).attr('checked')==true){
				$("input[name='sSymptomCode'][value='1']").each(function() {
					$(this).attr("checked",false);
				});
				if('10'==$(this).val()){
					$("#sSymptomOther").css('display','block'); 
				}
			}else{
				if('10'==$(this).val()){
					$("#sSymptomOther").css('display','none'); 
					$("#sSymptomOther").val("");
				}
			}
		}
     });
     // 回显赋值---------
     var jss = eval(jsondata2);
     if(jss != ""){
      if(ishuixian=='1'){
	     $('.btn_submit').hide();}
     	var jsonobjs2 = jss[0];
     	$("#txtdHeight").val(jsonobjs2.nHeight);
     	$("#sName").val(jsonobjs2.sName);
		$("#sNo").val(jsonobjs2.sNo);
		$("#dVisitingDate").val(jsonobjs2.dVisitingDate);
		$("#sVisitingTypeCode").val(jsonobjs2.sVisitingTypeCode);
		//$("#sSymptomOther").val(jsonobjs2.sSymptomOther);
				 if(jsonobjs2.sSymptomCode != "") {
			var str1 = jsonobjs2.sSymptomCode.split(",");
			for (var i=0; i<str1.length;i++) {
				$("input[name='sSymptomCode'][value="+str1[i]+"]").attr("checked",true);
				if(1==str1[i]){
					$("input[name='sSymptomCode'][value!='1']").each(function() {
						$(this).attr("checked",false);
					});
				} else if(10==str1[i]){
					$("#sSymptomOther").css('display','block'); 
					$("#sSymptomOther").val(jsonobjs2.sSymptomOther);
				}
			}
		}
		$("#iSystolicPressure").val(jsonobjs2.iSystolicPressure);
		$("#iDiastolicPressure").val(jsonobjs2.iDiastolicPressure);
		$("#dWeight1").val(jsonobjs2.dWeight1);
		$("#dWeight2").val(jsonobjs2.dWeight2);
		$("#dBodyMassIndex1").val(jsonobjs2.dBodyMassIndex1);
		$("#dBodyMassIndex2").val(jsonobjs2.dBodyMassIndex2);
		$("#sArteriopalmusCode").val(jsonobjs2.sArteriopalmusCode);
		$("#sOther").val(jsonobjs2.sOther);
		$("#nDaySmoke1").val(jsonobjs2.nDaySmoke1);
		$("#nDaySmoke2").val(jsonobjs2.nDaySmoke2);
		$("#nDayDrink1").val(jsonobjs2.nDayDrink1);
		$("#nDayDrink2").val(jsonobjs2.nDayDrink2);
		$("#nSport_EveryWeek1").val(jsonobjs2.nSport_EveryWeek1);
		$("#nSport_EveryMinute1").val(jsonobjs2.nSport_EveryMinute1);
		$("#nSport_EveryWeek2").val(jsonobjs2.nSport_EveryWeek2);
		$("#nSport_EveryMinute2").val(jsonobjs2.nSport_EveryMinute2);
		$("#sStapleFood1").val(jsonobjs2.sStapleFood1);
		$("#sStapleFood2").val(jsonobjs2.sStapleFood2);
		$("#sPsychplogicalRecoveryCode").val(jsonobjs2.sPsychplogicalRecoveryCode);
		$("#sCompianceCode").val(jsonobjs2.sCompianceCode);
		$("#dFastingBloodGlucose").val(jsonobjs2.dFastingBloodGlucose);
		$("#dGlycosylatedHemoglobin").val(jsonobjs2.dGlycosylatedHemoglobin);
		$("#dCheckDate").val(jsonobjs2.dCheckDate);
		$("#sOtherCheck").val(jsonobjs2.sOtherCheck);
		$("#sDrugComplianceCode").val(jsonobjs2.sDrugComplianceCode);
		$("#sDrugReactionCode").val(jsonobjs2.sDrugReactionCode);
		$("#sDrugReactionOther").val(jsonobjs2.sDrugReactionOther);
		$("#sHypoglycemiaCode").val(jsonobjs2.sHypoglycemiaCode);
		$("#sVisitingClassifyCode").val(jsonobjs2.sVisitingClassifyCode);
		$("#sTransferTreatment").val(jsonobjs2.sTransferTreatment);
		$("#sTransferTreatmentDept").val(jsonobjs2.sTransferTreatmentDept);
		$("#dNextVisitingDate").val(jsonobjs2.dNextVisitingDate);
		$("#sNextVisitingPlace").val(jsonobjs2.sNextVisitingPlace);
		$("#sVisitingDoctor").append("<option>"+jsonobjs2.sVisitingDoctor+"</option>");
		$("#sVisitingDoctor").val(jsonobjs2.sVisitingDoctor);
		$("#iWeatherHealthEducation").val(jsonobjs2.iWeatherHealthEducation);
		$("#sWeatherHealthEducationContent").val(jsonobjs2.sWeatherHealthEducationContent);
		$("#BaoJianZhidaoContent").val(jsonobjs2.BaoJianZhidaoContent);
		
		var js = jss[1].sMedicalList;
	    var jsonobjs22 = eval(js);
	    if(jsonobjs22 != "") {
			$("#sDrugName1").val(jsonobjs22[0].sDrugName);
			$("#iDrug_EveryDay1").val(jsonobjs22[0].iDrug_EveryDay);
			$("#sDrug_EveryTime1").val(jsonobjs22[0].sDrug_EveryTime);
			 $("#sDrugQtdw1").val(jsonobjs22[0].sDrugQtdw);
			 if(jsonobjs22[0].sDrugQtdw == 99) {
	    	$("#sDrug_qitadw1").show();
	    	$("#sDrug_qitadw1").val(jsonobjs22[0].sDrug_qitadw);
			}
			$("#sDrugName2").val(jsonobjs22[1].sDrugName);
			$("#iDrug_EveryDay2").val(jsonobjs22[1].iDrug_EveryDay);
			$("#sDrug_EveryTime2").val(jsonobjs22[1].sDrug_EveryTime);
			 $("#sDrugQtdw2").val(jsonobjs22[1].sDrugQtdw);
			 
			  if(jsonobjs22[1].sDrugQtdw == 99) {
	    	$("#sDrug_qitadw2").show();
	    	$("#sDrug_qitadw2").val(jsonobjs22[1].sDrug_qitadw);
	    }
			$("#sDrugName3").val(jsonobjs22[2].sDrugName);
			$("#iDrug_EveryDay3").val(jsonobjs22[2].iDrug_EveryDay);
			$("#sDrug_EveryTime3").val(jsonobjs22[2].sDrug_EveryTime);
		
		$("#sDrugQtdw3").val(jsonobjs22[2].sDrugQtdw);
			   if(jsonobjs22[2].sDrugQtdw == 99) {
	    	$("#sDrug_qitadw3").show();
	    	$("#sDrug_qitadw3").val(jsonobjs22[2].sDrug_qitadw);
	    }}
		$("#sInsulinType").val(jsonobjs2.sInsulinType);
		$("#sInsulinUsage").val(jsonobjs2.sInsulinUsage);
		if(jsonobjs2.sSymptomCode != "") {
			var str1 = jsonobjs2.sSymptomCode.split(",");
			for (var i=0; i<str1.length;i++) {
				$("input[name='sSymptomCode'][value="+str1[i]+"]").attr("checked",true);
				if(1==str1[i]){
					$("input[name='sSymptomCode'][value!='1']").each(function() {
						$(this).attr("checked",false);
					});
				} else if(10==str1[i]){
					$("#sSymptomOther").css('display','block'); 
					$("#sSymptomOther").val(jsonobjs2.sSymptomOther);
				}
			}
		}
		if(jsonobjs2.iWeatherHealthEducation != "" && jsonobjs2.iWeatherHealthEducation == 1) {
	     	$("#iWeatherHealthEducation").attr("checked",true);
	     	$("#trsHearthyContent").show();
		    $("#sWeatherHealthEducationContent").val(jsonobjs2.sWeatherHealthEducationContent);
	    }
	    if(jsonobjs2.sDrugReactionCode == 2) {
	    	$("#sDrugReactionOther").show();
	    	$("#sDrugReactionOther").val(jsonobjs2.sDrugReactionOther);
	    }
     }
}
//保存操作
function save(uploadType){
	if(isEmpty($("#sName").val())){
		alert("请填写患者姓名!");
		return false;
	}

	if(isEmpty($("#dVisitingDate").val())){
		alert("请填写随访时间!");
		return false;
	}

		if(isEmpty($("#iSystolicPressure").val())){
		alert("请填写收缩压!");
		return false;
	}

	if(isEmpty($("#iDiastolicPressure").val())){
		alert("请填写舒张压!");
		return false;
	}

	if(isEmpty($("#dWeight1").val())){
		alert("请填写体重!");
		return false;
	}

	if(isEmpty($("#txtdHeight").val())){
		alert("请填写身高!");
		return false;
	}

	if(isEmpty($("#dBodyMassIndex1").val())){
		alert("请填写当前体质指数!");
		return false;
	}

		if(isEmpty($("#nDaySmoke1").val())){
		alert("请填写目前吸烟量!");
		return false;
	}

	if(isEmpty($("#nDayDrink1").val())){
		alert("请填写目前饮酒量!");
		return false;
	}

	if(isEmpty($("#nSport_EveryWeek1").val())){
		alert("请填写目前运动(次/周)!");
		return false;
	}

	if(isEmpty($("#nSport_EveryMinute1").val())){
		alert("请填写目前运动(分钟/次)!");
		return false;
	}

	if(isEmpty($("#nSport_EveryMinute1").val())){
		alert("请填写目前运动(分钟/次)!");
		return false;
	}

	if(isEmpty($("#sStapleFood1").val())){
		alert("请填写目前主食(克/天)!");
		return false;
	}



	if($("#sNextVisitingPlace").val()==""){
		alert("请填写随访单位！");
		return false;
	}
	if($("#sVisitingDoctor").val()==""){
		alert("请填写随访医生签名！");
		return false;
	}
//获取症状值
	var chkIds_sSymptomCode = "";
	$("input[name='sSymptomCode']:checked").each(function(i) {
		chkIds_sSymptomCode += String($(this).val() + ",");
	});
	chkIds_sSymptomCode = chkIds_sSymptomCode.substring(0,chkIds_sSymptomCode.length - 1);
//中医保健指导代码
	var chkIds_BaoJianZhidaoContentCode = "";
	$("input[name='BaoJianZhidaoContentCode']:checked").each(function(i) {
		chkIds_BaoJianZhidaoContentCode += String($(this).val() + ",");
	});
	chkIds_BaoJianZhidaoContentCode = chkIds_BaoJianZhidaoContentCode.substring(0,chkIds_BaoJianZhidaoContentCode.length - 1);	
//是否健康教育
	var iWeatherHealthEducation = "";
	if($("input[name='iWeatherHealthEducation']").attr('checked')==true){
			iWeatherHealthEducation = 1;
		}else{
			iWeatherHealthEducation = 0;
		}	
	var sName = $("#sName").val();
	var sNo = $("#sNo").val();
	var dVisitingDate = $("#dVisitingDate").val();
	var sVisitingTypeCode =	$("#sVisitingTypeCode").val();
	
	//随访方式
	var sVisitingTypeName=$("#sVisitingTypeCode").find("option:selected").text();
	if("--请选择--"==sVisitingTypeName){
	sVisitingTypeName="";
	}
	var sArteriopalmusName=$("#sArteriopalmusCode").find("option:selected").text();
	if("--请选择--"==sArteriopalmusName){
	sArteriopalmusName="";
	}
	var sPsychplogicalRecoveryName=$("#sPsychplogicalRecoveryCode").find("option:selected").text();
	if("--请选择--"==sPsychplogicalRecoveryName){
	sPsychplogicalRecoveryName="";
	}
	var sCompianceName=$("#sCompianceCode").find("option:selected").text();
	if("--请选择--"==sCompianceName){
	sCompianceName="";
	}
	var sDrugComplianceName=$("#sDrugComplianceCode").find("option:selected").text();
	if("--请选择--"==sDrugComplianceName){
	sDrugComplianceName="";
	}
	var sDrugReactionName=$("#sDrugReactionCode").find("option:selected").text();
	if("--请选择--"==sDrugReactionName){
	sDrugReactionName="";
	}
	var sHypoglycemiaName=$("#sHypoglycemiaCode").find("option:selected").text();
	if("--请选择--"==sHypoglycemiaName){
	sHypoglycemiaName="";
	}
	var sVisitingClassifyName=$("#sVisitingClassifyCode").find("option:selected").text();
	if("--请选择--"==sVisitingClassifyName){
	sVisitingClassifyName="";
	}
	
	
	
	var sSymptomCode = chkIds_sSymptomCode;
	var sSymptomOther = $("#sSymptomOther").val();
	
	var sSymptomName="";  
	$(".csszz").each(function(){
	   if($(this).attr("checked"))
	   {
	   sSymptomName+=$(this).next().text()+",";  
	   }
	    })
    if(sSymptomName != "")
    {
    	sSymptomName = sSymptomName.substring(0,sSymptomName.lastIndexOf(","));
    }
    
	var iSystolicPressure = $("#iSystolicPressure").val()==""?null:$("#iSystolicPressure").val();
	var iDiastolicPressure = $("#iDiastolicPressure").val()==""?null:$("#iDiastolicPressure").val();
	var dWeight1 = $("#dWeight1").val()==""?null:$("#dWeight1").val();
	var dWeight2 = $("#dWeight2").val()==""?null:$("#dWeight2").val();
	var nHeight = $("#txtdHeight").val()==""?null:$("#txtdHeight").val();
	var dBodyMassIndex1 = $("#dBodyMassIndex1").val()==""?null:$("#dBodyMassIndex1").val();
	var dBodyMassIndex2 = $("#dBodyMassIndex2").val()==""?null:$("#dBodyMassIndex2").val();
	var sArteriopalmusCode = $("#sArteriopalmusCode").val();
	var sOther = $("#sOther").val();
	var nDaySmoke1 = $("#nDaySmoke1").val();
	var nDaySmoke2 = $("#nDaySmoke2").val();
	var nDayDrink1 = $("#nDayDrink1").val();
	var nDayDrink2 = $("#nDayDrink2").val();
	var nSport_EveryWeek1 = $("#nSport_EveryWeek1").val();
	var nSport_EveryMinute1 = $("#nSport_EveryMinute1").val();
	var nSport_EveryWeek2 = $("#nSport_EveryWeek2").val();
	var nSport_EveryMinute2 = $("#nSport_EveryMinute2").val();
	var sStapleFood1 = $("#sStapleFood1").val()==""?null:$("#sStapleFood1").val();
	var sStapleFood2 = $("#sStapleFood2").val()==""?null:$("#sStapleFood2").val();
	var sPsychplogicalRecoveryCode = $("#sPsychplogicalRecoveryCode").val();
	var sCompianceCode = $("#sCompianceCode").val();
	var dFastingBloodGlucose = $("#dFastingBloodGlucose").val()==""?null:$("#dFastingBloodGlucose").val();
	var dGlycosylatedHemoglobin = $("#dGlycosylatedHemoglobin").val()==""?null:$("#dGlycosylatedHemoglobin").val();
	var dCheckDate = $("#dCheckDate").val();
	var sOtherCheck = $("#sOtherCheck").val()==""?null:$("#sOtherCheck").val();
	var sDrugComplianceCode =  $("#sDrugComplianceCode").val();
	var sDrugReactionCode =  $("#sDrugReactionCode").val();
	var sDrugReactionOther = $("#sDrugReactionOther").val();
	var sHypoglycemiaCode = $("#sHypoglycemiaCode").val();
	var sVisitingClassifyCode = $("#sVisitingClassifyCode").val();
	var sTransferTreatment = $("#sTransferTreatment").val();
	var sTransferTreatmentDept = $("#sTransferTreatmentDept").val();
	var dNextVisitingDate = $("#dNextVisitingDate").val();
	var sNextVisitingPlace = $("#sNextVisitingPlace").val();
	var sVisitingDoctor = $("#sVisitingDoctor").val();
	var sWeatherHealthEducationContent = $("#sWeatherHealthEducationContent").val();
	var BaoJianZhidaoContent = $("#BaoJianZhidaoContent").val();
	var BaoJianZhidaoContentCode = chkIds_BaoJianZhidaoContentCode;
	var sDrugName1 = $("#sDrugName1").val();
	var iDrug_EveryDay1 = $("#iDrug_EveryDay1").val();
	var sDrug_EveryTime1 = $("#sDrug_EveryTime1").val();
	var sDrugName2 = $("#sDrugName2").val();
	var iDrug_EveryDay2 = $("#iDrug_EveryDay2").val();
	var sDrug_EveryTime2 = $("#sDrug_EveryTime2").val();
	var sDrugName3 = $("#sDrugName3").val();
	var iDrug_EveryDay3 = $("#iDrug_EveryDay3").val();
	var sDrug_EveryTime3 = $("#sDrug_EveryTime3").val();
	var sInsulinType = $("#sInsulinType").val();
	var sInsulinUsage = $("#sInsulinUsage").val();
	var sDrugQtdw1 = $("#sDrugQtdw1").val();
	var sDrugQtdw2 = $("#sDrugQtdw2").val();
	var sDrugQtdw3 = $("#sDrugQtdw3").val();

	
	var sDrug_qitadw1 = $("#sDrug_qitadw1").val();
	var sDrug_qitadw2 = $("#sDrug_qitadw2").val();
	var sDrug_qitadw3 = $("#sDrug_qitadw3").val();

	
	contact.save(uploadType,sVisitingClassifyName,sHypoglycemiaName,sDrugReactionName,sDrugComplianceName,sCompianceName,sPsychplogicalRecoveryName,sArteriopalmusName,sSymptomName,sVisitingTypeName,txtdHeight,sName,sNo,dVisitingDate,sVisitingTypeCode,sSymptomCode,sSymptomOther,iSystolicPressure,iDiastolicPressure,
				dWeight1,dWeight2,dBodyMassIndex1,dBodyMassIndex2,sArteriopalmusCode,sOther,nDaySmoke1,nDaySmoke2,nDayDrink1,nDayDrink2,
				nSport_EveryWeek1,nSport_EveryMinute1,nSport_EveryWeek2,nSport_EveryMinute2,sStapleFood1,sStapleFood2,sPsychplogicalRecoveryCode,
				sCompianceCode,dFastingBloodGlucose,dGlycosylatedHemoglobin,dCheckDate,sOtherCheck,sDrugComplianceCode,sDrugReactionCode,sDrugReactionOther,
				sHypoglycemiaCode,sVisitingClassifyCode,sTransferTreatment,sTransferTreatmentDept,dNextVisitingDate,sNextVisitingPlace,sVisitingDoctor,
				iWeatherHealthEducation,sWeatherHealthEducationContent,BaoJianZhidaoContent,BaoJianZhidaoContentCode,sDrugName1,
				iDrug_EveryDay1,sDrug_EveryTime1,sDrugName2,iDrug_EveryDay2,sDrug_EveryTime2,sDrugName3,iDrug_EveryDay3,sDrug_EveryTime3,sInsulinType,sInsulinUsage,sDrugQtdw1,sDrugQtdw2,sDrugQtdw3,sDrug_qitadw1,sDrug_qitadw2,sDrug_qitadw3);
if(uploadType=="2"){
setTimeout((function(me){$("#btnSubmit").attr("disabled",true);return function(){$("#btnSubmit").attr("disabled",false);};})(this),5000);
}	
}

//显示从xml中取出的血压数据
function showXML(jsondata){
	var jsonobj = eval('(' + jsondata + ')');//JSONObject格式的用此解析
	$("#iSystolicPressure").val(jsonobj.cSP);
	$("#iDiastolicPressure").val(jsonobj.cDP);
	//alert(jsondata);
}
//显示从xml中取出的血糖数据
function showXML2(jsondata){
	var jsonobj = eval('(' + jsondata + ')');//JSONObject格式的用此解析
	$("#dFastingBloodGlucose").val(jsonobj.gGLU);
	//alert(jsondata);
}
//显示从xml中取出的血红蛋白数据
function showXML3(jsondata){
	var jsonobj = eval('(' + jsondata + ')');//JSONObject格式的用此解析
	$("#dGlycosylatedHemoglobin").val(jsonobj.hHb);
	//alert(jsondata);
}
</script>
<script>
var c = new Calendar("c");
document.write(c);
</script>
</head>
<!-- js代码通过webView调用其插件中的java代码 -->
<body bgcolor="#ffffff" onload="javascript:contact.getHtml()">
		<div class="easyui-tabs" fit="false" border="false">
			<div title="<h1>症状、体征、生活方式指导</h1>" id="qqq">
					<table width="100%" border="0" align="center" cellpadding="0"
						cellspacing="0" class="content02">
						<tbody>
							<tr>
								<td align="right" width="15%">
									<font size="4" color="red">*</font><font size="4">姓名</font>
								</td>
								<td width="35%">
									<input id="sName" name="sName" type="text" class="srk200" value="" maxlength="50" readonly="readonly"/>
								</td>
								<td align="right" width="15%">
									<font size="4">档案编号</font>
								</td>
								<td width="35%">
									<input id="sNo" name="sNo" type="text" class="srk200" value="" maxlength="50" readonly="readonly"/>
								</td>
							</tr>
							<tr>
								<td align="right">
									<font size="4" color="red">*</font><font size="4">随访时间</font>
								</td>
								<td>
									<input id="dVisitingDate" name="dVisitingDate" type="text" class="srk200" value="" maxlength="50" readonly="readonly" onfocus="c.showMoreDay = false;c.show(this);"/>
								</td>
								<td align="right">
									<font size="4">随访方式</font>
								</td>
								<td>
									<select id="sVisitingTypeCode" name="sVisitingTypeCode" style="font:23px/23px '宋体';font-weight: bold; color: #333333;height:30px;width:205px;margin-left:2px;padding:0px;">
										<option value=''>--请选择--</option>
									 </select>
								</td>
							</tr>
							<tr>
								<td colspan="4" class="zbt01" style="text-align: left">
									<h2>症状</h2>
								</td>
							</tr>
							<tr>
								<td align="right">
									<font size="4">症状</font>
								</td>
								<td colspan="3">
									<input id="sSymptomOther" name="sSymptomOther" type="text" class="srk200" value="" maxlength="50" style="display:none;"/>
								</td>
							</tr>
							<tr>
								<td colspan="4" class="zbt01" style="text-align: left">
									<h2>体征</h2>
								</td>
							</tr>
							<tr>
								<td align="right">
									<font size="4" color="red">*</font><font size="4">收缩压</font>
								</td>
								<td>
									<input id="iSystolicPressure" name="iSystolicPressure" type="text" class="srk200" value="" maxlength="50" onkeyup="this.value=this.value.replace(/[^0-9.]/g,'')" onblur="this.value=this.value.replace(/[^0-9.]/g,'')" /><font size="4">mmHg</font>
									<input type="button" value="输入..." style="height:30px;width: 60px;font-size:15px;" onclick="contact.getXML('1')"/>
								</td>
								<td align="right">
									<font size="4" color="red">*</font><font size="4">舒张压</font>
								</td>
								<td>
									<input id="iDiastolicPressure" name="iDiastolicPressure" type="text" class="srk200" value="" maxlength="50" onkeyup="this.value=this.value.replace(/[^0-9.]/g,'')" onblur="this.value=this.value.replace(/[^0-9.]/g,'')" /><font size="4">mmHg</font>
								</td>
							</tr>
							<tr>
								<td align="right">
									<font size="4" color="red">*</font><font size="4">体重</font>
								</td>
								<td>
									<input id="dWeight1" name="dWeight1" type="text" class="srk70" value="" maxlength="11" 
										onkeyup="this.value=this.value.replace(/[^0-9.]/g,'')"  /><font size="4">kg</font>
									<font size="4">身高</font>
									<script>
									blyw_no_automatic_append_zero("dWeight1",/[^0-9.]/g);
									
									bllw_no_automatic_append_zero("txtdHeight",/[^0-9.]/g);
									bllw("dFastingBloodGlucose",/[^0-9.]/g);
									bllw("dGlycosylatedHemoglobin",/[^0-9.]/g);
									<!--blyw("dWeight1",/[^0-9.]/g);-->
									<!--bllw("txtdHeight",/[^0-9.]/g);-->
									<!--bllw("dFastingBloodGlucose",/[^0-9.]/g);-->
									<!--bllw("dGlycosylatedHemoglobin",/[^0-9.]/g);-->
									</script>
									<input id="txtdHeight" name="txtdHeight" type="text" class="srk70" value="" maxlength="11" 
										onkeyup="this.value=this.value.replace(/[^0-9.]/g,'')"
										onblur="this.value=this.value.replace(/[^0-9.]/g,'')"/><font size="4">cm</font>
								</td>
								<td align="right">
									<font size="4">下次随访达到目标</font>
								</td>
								<td>
									<input id="dWeight2" name="dWeight2" type="text" class="srk200" value="" maxlength="11" 
										onkeyup="this.value=this.value.replace(/[^0-9.]/g,'')"
										onblur="this.value=this.value.replace(/[^0-9.]/g,'')"/><font size="4">kg</font>
								</td>
							</tr>
							<tr>
								<td align="right">
									<font size="4" color="red">*</font><font size="4">当前体质指数</font>
								</td>
								<td>
									<input id="dBodyMassIndex1" name="dBodyMassIndex1" type="text" class="srk200" value="" maxlength="11" readonly="readonly" onclick="getBodyMassIndex1()"/>
								</td>
								<td align="right">
									<font size="4">下次随访目标体质指数</font>
								</td>
								<td>
									<input id="dBodyMassIndex2" name="dBodyMassIndex2" type="text" class="srk200" value="" maxlength="11" readonly="readonly" onclick="getBodyMassIndex2()"/>
								</td>
							</tr>
							<tr>
								<td align="right">
									<font size="4">足背动脉搏动</font>
								</td>
								<td>
									<select id="sArteriopalmusCode" name="sArteriopalmusCode" style="font:23px/23px '宋体';font-weight: bold; color: #333333;height:30px;width:205px;margin-left:2px;padding:0px;">
										<option value=''>--请选择--</option>
									 </select>
								</td>
								<td align="right">
									<font size="4">其他</font>
								</td>
								<td>
									<input id="sOther" name="sOther" type="text" class="srk200"	value="" maxlength="50" />
								</td>
							</tr>
							<tr>
								<td colspan="4" class="zbt01" style="text-align: left">
									<h2>生活方式指导</h2>
								</td>
							</tr>
							<tr>
								<td align="right">
									<font size="4" color="red">*</font><font size="4">目前吸烟量</font>
								</td>
								<td>
									<input id="nDaySmoke1" name="nDaySmoke1" type="text" class="srk200"	value="" maxlength="50" onkeyup="this.value=this.value.replace(/[^0-9.]/g,'')" onblur="this.value=this.value.replace(/[^0-9.]/g,'')" /><font size="4">支</font>
								</td>
								<td align="right">
									<font size="4">下次随访达到目标</font>
								</td>
								<td>
									<input id="nDaySmoke2" name="nDaySmoke2" type="text" class="srk200"	value="" maxlength="50" onkeyup="this.value=this.value.replace(/[^0-9.]/g,'')" onblur="this.value=this.value.replace(/[^0-9.]/g,'')" /><font size="4">支</font>
								</td>
							</tr>
							<tr>
								<td align="right">
									<font size="4" color="red">*</font><font size="4">目前饮酒量</font>
								</td>
								<td>
									<input id="nDayDrink1" name="nDayDrink1" type="text" class="srk200"	value="" maxlength="50" onkeyup="this.value=this.value.replace(/[^0-9.]/g,'')" onblur="this.value=this.value.replace(/[^0-9.]/g,'')"/><font size="4">两</font>
								</td>
								<td align="right">
									<font size="4">下次随访达到目标</font>
								</td>
								<td>
									<input id="nDayDrink2" name="nDayDrink2" type="text" class="srk200" value="" maxlength="50" onkeyup="this.value=this.value.replace(/[^0-9.]/g,'')" onblur="this.value=this.value.replace(/[^0-9.]/g,'')" /><font size="4">两</font>
								</td>
							</tr>
							<tr>
								<td align="right">
									<font size="4" color="red">*</font><font size="4">目前运动</font>
								</td>
								<td>
									<input id="nSport_EveryWeek1" name="nSport_EveryWeek1" type="text" class="srk70" value=""	maxlength="50" onkeyup="this.value=this.value.replace(/[^0-9.]/g,'')" onblur="this.value=this.value.replace(/[^0-9.]/g,'')" /><font size="4">次/周</font>&nbsp;&nbsp;
									<input id="nSport_EveryMinute1" name="nSport_EveryMinute1" type="text" class="srk70" value="" maxlength="50"  onkeyup="this.value=this.value.replace(/[^0-9.]/g,'')" onblur="this.value=this.value.replace(/[^0-9.]/g,'')"/><font size="4">分钟/次</font>
								</td>
								<td align="right">
									<font size="4">下次随访达到目标</font>
								</td>
								<td>
									<input id="nSport_EveryWeek2" name="nSport_EveryWeek2" type="text" class="srk70" value="" maxlength="50" onkeyup="this.value=this.value.replace(/[^0-9.]/g,'')" onblur="this.value=this.value.replace(/[^0-9.]/g,'')"/><font size="4">次/周</font>&nbsp;&nbsp;
									<input id="nSport_EveryMinute2" name="nSport_EveryMinute2" type="text" class="srk70"value="" maxlength="50" onkeyup="this.value=this.value.replace(/[^0-9.]/g,'')" onblur="this.value=this.value.replace(/[^0-9.]/g,'')"/><font size="4">分钟/次</font>
								</td>
							</tr>
							<tr>
								<td align="right">
									<font size="4" color="red">*</font><font size="4">目前主食</font>
								</td>
								<td>
									<input id="sStapleFood1" name="sStapleFood1" type="text" class="srk200"	value="" maxlength="50" onkeyup="this.value=this.value.replace(/[^0-9.]/g,'')" onblur="this.value=this.value.replace(/[^0-9.]/g,'')"/><font size="4">克/天</font>
								</td>
								<td align="right">
									<font size="4">下次随访达到目标</font>
								</td>
								<td>
									<input id="sStapleFood2" name="sStapleFood2" type="text" class="srk200"	value="" maxlength="50" onkeyup="this.value=this.value.replace(/[^0-9.]/g,'')" onblur="this.value=this.value.replace(/[^0-9.]/g,'')"/><font size="4">克/天</font>
								</td>
							</tr>
							<tr>
								<td align="right">
									<font size="4">心理调整</font>
								</td>
								<td>
									<select id="sPsychplogicalRecoveryCode" name="sPsychplogicalRecoveryCode" style="font:23px/23px '宋体';font-weight: bold; color: #333333;height:30px;width:205px;margin-left:2px;padding:0px;">
										<option value=''>--请选择--</option>
									 </select>
								</td>
								<td align="right">
									<font size="4">遵医行为</font>
								</td>
								<td>
									<select id="sCompianceCode" name="sCompianceCode" style="font:23px/23px '宋体';font-weight: bold; color: #333333;height:30px;width:205px;margin-left:2px;padding:0px;">
										<option value=''>--请选择--</option>
									 </select>
								</td>
							</tr>
							<tr>
								<td colspan="4" class="zbt01" style="text-align: left">
									<h2>辅助检查</h2> 
								</td>
							</tr>
							<tr>
								<td align="right">
									<font size="4">空腹血糖值</font>
								</td>
								<td>
									<input id="dFastingBloodGlucose" name="dFastingBloodGlucose" type="text" class="srk200"	value="" maxlength="50" onkeyup="this.value=this.value.replace(/[^0-9.]/g,'')" onblur="this.value=this.value.replace(/[^0-9.]/g,'')"/><font size="4">mmol/L</font>
									<input type="button" value="输入..." style="height:30px;width: 60px;font-size:15px;" onclick="contact.getXML('2')"/>
								</td>
								<td align="right">
									<font size="4">糖化血红蛋白</font>
								</td>
								<td>
									<input id="dGlycosylatedHemoglobin" name="dGlycosylatedHemoglobin" type="text" class="srk200" value="" maxlength="50" onkeyup="this.value=this.value.replace(/[^0-9.]/g,'')" onblur="this.value=this.value.replace(/[^0-9.]/g,'')"/><font size="4">%</font>
									<input type="button" value="输入..." style="height:30px;width: 60px;font-size:15px;" onclick="contact.getXML('3')"/>
								</td>
							</tr>
							<tr>
								<td align="right">
									<font size="4">检查日期</font>
								</td>
								<td>
									<input id="dCheckDate" name="dCheckDate" type="text" class="srk200" value="" maxlength="50" readonly="readonly" onfocus="c.showMoreDay = false;c.show(this);"/>
								</td>
								<td align="right">
									<font size="4">其他检查说明</font>
								</td>
								<td>
									<input id="sOtherCheck" name="sOtherCheck" type="text" class="srk200" value="" maxlength="50" />
								</td>
							</tr>
							<tr>
								<td align="right">
									<font size="4">服药依从性</font>
								</td>
								<td>
									<select id="sDrugComplianceCode" name="sDrugComplianceCode" style="font:23px/23px '宋体';font-weight: bold; color: #333333;height:30px;width:205px;margin-left:2px;padding:0px;">
										<option value=''>--请选择--</option>
									 </select>
								</td>
								<td align="right">
									<font size="4">药物不良反应</font>
								</td>
								<td>
									<select id="sDrugReactionCode" name="sDrugReactionCode" onchange="changesDrugReactionCode(this)" style="font:23px/23px '宋体';font-weight: bold; color: #333333;height:30px;width:205px;margin-left:2px;padding:0px;">
										<option value=''>--请选择--</option>
									 </select>
									 <input id="sDrugReactionOther" name="sDrugReactionOther" type="text" class="srk200" value="" maxlength="50" style="display:none;"/>
								</td>
							</tr>
							<tr>
								<td align="right">
									<font size="4">低血糖反应</font>
								</td>
								<td>
									<select id="sHypoglycemiaCode" name="sHypoglycemiaCode" style="font:23px/23px '宋体';font-weight: bold; color: #333333;height:30px;width:205px;margin-left:2px;padding:0px;">
										<option value=''>--请选择--</option>
									 </select>
								</td>
								<td align="right">
									<font size="4">此次随访分类</font>
								</td>
								<td>
									<select id="sVisitingClassifyCode" name="sVisitingClassifyCode"  style="font:23px/23px '宋体';font-weight: bold; color: #333333;height:30px;width:205px;margin-left:2px;padding:0px;">
										<option value=''>--请选择--</option>
									 </select>
								</td>
							</tr>
						</tbody>
					</table>
			</div>
			<div title="<h1>用药情况、转诊</h1>">
				<table width="100%" border="0" align="center" cellpadding="0"
						cellspacing="0" class="content02">
						<tbody>
							<tr>
								<td colspan="4" class="zbt01" style="text-align: right;">
								<input type="button" class="btn_submit" onclick="save('1');" value="上传" />
									<input type="button" class="btn_submit" id="btnSubmit" onclick="save('2');" value="保存" />
								</td>
							</tr>
							<tr>
								<td align="right" width="15%">
									<font size="4">药物名称1</font>
								</td>
								<td width="35%">
									<input id="sDrugName1" name="sDrugName1" type="text" class="srk200" value="" maxlength="50" />
								</td>
								<td align="right" width="8%">
									<font size="4">用法用量</font>
								</td>
								<td width="42%">
									<font size="4">每日</font>
									<input id="iDrug_EveryDay1" name="iDrug_EveryDay1" type="text" class="srk70" value="" maxlength="50" onkeyup="this.value=this.value.replace(/[^1-9.]/g,'')" onblur="this.value=this.value.replace(/[^1-9.]/g,'')"/><font size="4">次</font>
									<font size="4">每次</font>
									<input id="sDrug_EveryTime1" name="sDrug_EveryTime1" type="text" class="srk70" value="" maxlength="50" />
									<select onchange="showDanWeiQt1(this)" id="sDrugQtdw1" name="sDrugQtdw1" style="font:23px/23px '宋体';font-weight: bold; color: #333333;height:30px;width:130px;margin-left:2px;padding:0px;">
										<option value="2">片</option>
										<option value="3">mg</option>
										<option value="99">其他单位</option>
									</select>
									<input id="sDrug_qitadw1" name="sDrug_qitadw1" type="text" class="srk70" style="display:none;width:60px;” value="" maxlength="10" />
								</td>
							</tr>
							<tr>
								<td align="right">
									<font size="4">药物名称2</font>
								</td>
								<td>
									<input id="sDrugName2" name="sDrugName2" type="text" class="srk200" value="" maxlength="50" />
								</td>
								<td align="right">
									<font size="4">用法用量</font>
								</td>
								<td>
									<font size="4">每日</font>
									<input id="iDrug_EveryDay2" name="iDrug_EveryDay2" type="text" class="srk70" value="" maxlength="50" onkeyup="this.value=this.value.replace(/[^1-9.]/g,'')" onblur="this.value=this.value.replace(/[^1-9.]/g,'')"/><font size="4">次</font>
									<font size="4">每次</font>
									<input id="sDrug_EveryTime2" name="sDrug_EveryTime2" type="text" class="srk70" value="" maxlength="50" onkeyup="this.value=this.value.replace(/[^1-9.]/g,'')" onblur="this.value=this.value.replace(/[^1-9.]/g,'')"/>
									<select onchange="showDanWeiQt2(this)" id="sDrugQtdw2" name="sDrugQtdw2" style="font:23px/23px '宋体';font-weight: bold; color: #333333;height:30px;width:130px;margin-left:2px;padding:0px;">
										<option value="2">片</option>
										<option value="3">mg</option>
										<option value="99">其他单位</option>
									</select>
									<input id="sDrug_qitadw2" name="sDrug_qitadw2" type="text" class="srk70" style="display:none;width:60px;” value="" maxlength="10" />
								</td>
							</tr>
							<tr>
								<td align="right">
									<font size="4">药物名称3</font>
								</td>
								<td>
									<input id="sDrugName3" name="sDrugName3" type="text" class="srk200" value="" maxlength="50" />
								</td>
								<td align="right">
									<font size="4">用法用量</font>
								</td>
								<td>
									<font size="4">每日</font>
									<input id="iDrug_EveryDay3" name="iDrug_EveryDay3" type="text" class="srk70" value="" maxlength="50" onkeyup="this.value=this.value.replace(/[^1-9.]/g,'')" onblur="this.value=this.value.replace(/[^1-9.]/g,'')"/><font size="4">次</font>
									<font size="4">每次</font>
									<input id="sDrug_EveryTime3" name="sDrug_EveryTime3" type="text" class="srk70" value=""	maxlength="50" onkeyup="this.value=this.value.replace(/[^1-9.]/g,'')" onblur="this.value=this.value.replace(/[^1-9.]/g,'')"/>
									<select onchange="showDanWeiQt3(this)" id="sDrugQtdw3" name="sDrugQtdw3" style="font:23px/23px '宋体';font-weight: bold; color: #333333;height:30px;width:130px;margin-left:2px;padding:0px;">
										<option value="2">片</option>
										<option value="3">mg</option>
										<option value="99">其他单位</option>
									</select>
									<input id="sDrug_qitadw3" name="sDrug_qitadw3" type="text" class="srk70" style="display:none;width:60px;” value="" maxlength="10" />
								</td>
							</tr>
							<tr>
								<td align="right">
									<font size="4">胰岛素种类</font>
								</td>
								<td>
									<input id="sInsulinType" name="sInsulinType" type="text" class="srk200"	value="" maxlength="50"/>
								</td>
								<td align="right">
									<font size="4">用法用量</font>
								</td>
								<td>
									<input id="sInsulinUsage" name="sInsulinUsage" type="text" class="srk200" value=""	maxlength="50"   />
								</td>
							</tr>
							<tr>
								<td colspan="4" class="zbt01" style="text-align: left">
									<h2>转诊</h2> 
								</td>
							</tr>
							<tr>
								<td align="right">
									<font size="4">转诊原因</font>
								</td>
								<td>
									<input id="sTransferTreatment" name="sTransferTreatment" type="text" class="srk200"	value="" maxlength="50" />
								</td>
								<td align="right">
									<font size="4">转诊机构及科别</font>
								</td>
								<td>
									<input id="sTransferTreatmentDept" name="sTransferTreatmentDept" type="text" class="srk200"	value="" maxlength="25" />
								</td>
							</tr>
							<tr>
								<td align="right">
									<font size="4">下次随访日期</font>
								</td>
								<td>
									<input id="dNextVisitingDate" name="dNextVisitingDate" type="text" class="srk200" value="" maxlength="50" readonly="readonly" onfocus="c.showMoreDay = false;c.show(this);"/>
								</td>
								<td align="right">
									<font size="4">随访单位</font>
								</td>
								<td>
									<input id="sNextVisitingPlace" name="sNextVisitingPlace" type="text" class="srk200"	value="" maxlength="25" />
								</td>
							</tr>
							<tr>
								<td align="right">
									<font size="4" color="red">*</font><font size="4">随访医生签名</font>
								</td>
								<td>
									<select id="sVisitingDoctor" name="sVisitingDoctor" style="float:left;font:23px/23px '宋体';font-weight: bold; color: #333333;height:30px;width:205px;margin-left:2px;padding:0px;">
										<option value=''>--请选择--</option>
									 </select>
								</td>
								<td align="right">
									<font size="4">是否健康教育</font>
								</td>
								<td>
									&nbsp;&nbsp;<input id="iWeatherHealthEducation" type="checkbox" name="iWeatherHealthEducation" value="1"/><font size="4">是</font>
								</td>
							</tr>
							<tr id="trsHearthyContent" style="display:none">
								<td align="right">
									<font size="4">健康教育内容</font>
								</td>
								<td colspan="3">
								    <textarea id="sWeatherHealthEducationContent" style="width:800px;height:120px;font-size:18px;font-weight:bold;" name="sWeatherHealthEducationContent"></textarea>
									<img alt="帮助"  src="images/help.png"
                        				 style="vertical-align: middle"/>
                    					 <a href="#" onclick="ChoseJianKangZhiDao()"><span><font size="2">点击打开健康指导模版</font></span></a>
								</td>
							</tr>
							<tr>
								<td align="right">
									<font size="4">中医药行为干预</font>
								</td>
								<td colspan="3">
									<textarea id="BaoJianZhidaoContent" style="width:800px;height:120px;font-size:18px;font-weight:bold;" name="BaoJianZhidaoContent"></textarea>
									<img alt="帮助"  src="images/help.png"
                        				 style="vertical-align: middle"/>
                    					 <a href="#" onclick="ChoseZhongYiBaoJian()"><span><font size="2">选择行为干预</font></span></a>
								</td>
							</tr>
						</tbody>
					</table>	
							<!--选择健康指导的弹出层 -->
<div id="divChoseJianKangZhiDao" title="<font size='4'>健康指导模板</font>" style="padding:5px;width:1000px;height:500px;">
	<table width="100%" border="0" cellspacing="0" cellpadding="0" class="list02" align="center">
		<thead>
			<tr>
				<td style="width: 50px">
					<div class="divnr-auto">
						<font size="4">选择</font>
					</div>
				</td>
				<td align="center">
					<div class="divnr-auto">
						<font size="4">健康指导内容</font>
					</div>
				</td>
			</tr>
		</thead>
		<tbody id="tbodyJianKangZhiDao">
			<tr>
				<td align="center"><input id="1" type="checkbox" name="JianKangZhidaoContentCode" value="1"/></td>
				<td align="left"><font id="JianKangZhiDao1" size="4">饮食控制是各型糖尿病治疗的基础，病员应按医师指导的食谱进食，定时定量进餐，不食甜食，少吃水果，多吃新鲜蔬菜和粗植物纤维类食品。</font></td>
			</tr>
			<tr>
				<td align="center"><input id="2" type="checkbox" name="JianKangZhidaoContentCode" value="2"/></td>
				<td align="left"><font id="JianKangZhiDao2" size="4">学会自测糖尿病，了解自己经常服用的降糖药物或注射胰岛素的相关知识，牢记用量和用药时间。测量结果和用药情况要加以记录。</font></td>
			</tr>
			<tr>
				<td align="center"><input id="3" type="checkbox" name="JianKangZhidaoContentCode" value="3"/></td>
				<td align="left"><font id="JianKangZhiDao3" size="4">接受专科医师指导，不宜随意停用或任意改变降糖药或胰岛素的用量。识别并防止低血糖反应。</font></td>
			</tr>
			<tr>
				<td align="center"><input id="4" type="checkbox" name="JianKangZhidaoContentCode" value="4"/></td>
				<td align="left"><font id="JianKangZhiDao4" size="4">注意皮肤清洁，常洗澡，预防感染，禁烟，禁酒，监测体重，适当参加体力活动，宜饭后慢走，晨练不宜空腹。保证充足睡眠。</font></td>
			</tr>
			<tr>
				<td align="center"><input id="5" type="checkbox" name="JianKangZhidaoContentCode" value="5"/></td>
				<td align="left"><font id="JianKangZhiDao5" size="4">避免精神刺激，保持乐观情绪。</font></td>
			</tr>
			<tr>
				<td align="center"><input id="6" type="checkbox" name="JianKangZhidaoContentCode" value="6"/></td>
				<td align="left"><font id="JianKangZhiDao6" size="4">病程较长者并发皮肤感觉障碍、微血管病变时，所穿鞋袜不宜过紧，要经常活动肢体，防止外伤，采取措施防止过冷过热。</font></td>
			</tr>
			<tr>
				<td align="center"><input id="7" type="checkbox" name="JianKangZhidaoContentCode" value="7"/></td>
				<td align="left"><font id="JianKangZhiDao7" size="4">如有发热、咳嗽、尿频、疖疮等疾病情况应及时就诊，以免感染播散。 </font></td>
			</tr>
			<tr>
				<td align="center"><input id="8" type="checkbox" name="JianKangZhidaoContentCode" value="8"/></td>
				<td align="left"><font id="JianKangZhiDao8" size="4">定期到医院随访，作血糖和心、肾、眼底等的功能测定，及时防治各种并发症。 </font></td>
			</tr>
			<tr>
				<td align="center"><input id="9" type="checkbox" name="JianKangZhidaoContentCode" value="9"/></td>
				<td align="left"><font id="JianKangZhiDao9" size="4">若出现发热、咳嗽、尿频等现象，应及时就诊。 </font></td>
			</tr>
		</tbody>
</table>
</div>
<!--选择健康指导的弹出层  -->

					
					
<!--选择行为干预的弹出层 -->
<div id="divChoseZhongYiBaoJian" title="<font size='4'>选择中医保健指导</font>" style="padding:5px;width:1000px;height:500px;">
	<table width="100%" border="0" cellspacing="0" cellpadding="0" class="list02" align="center">
		<thead>
			<tr>
				<td style="width: 50px">
					<div class="divnr-auto">
						<font size="4">选择</font>
					</div>
				</td>
				<td align="center">
					<div class="divnr-auto">
						<font size="4">保健指导内容</font>
					</div>
				</td>
			</tr>
		</thead>
		<tbody id="tbodyZhongYiBaoJian">
			<tr>
				<td align="center"><input id="1" type="checkbox" name="BaoJianZhidaoContentCode" value="1"/></td>
				<td align="left"><font id="ZhongYiBaoJian1" size="4">高脂食物者要做到合理膳食，佐以药膳治疗：心阴虚者用山药小麦粥；脾肾俱虚者用山药熟地泽泻瘦肉汤；降糖用菠菜根鸡内金粥、胡萝卜粳米粥。</font></td>
			</tr>
			<tr>
				<td align="center"><input id="2" type="checkbox" name="BaoJianZhidaoContentCode" value="2"/></td>
				<td align="left"><font id="ZhongYiBaoJian2" size="4">缺乏体力劳动或体育锻炼者根据病情选择太极拳、散步、健身操、游泳、交谊舞等运动疗法。</font></td>
			</tr>
			<tr>
				<td align="center"><input id="3" type="checkbox" name="BaoJianZhidaoContentCode" value="3"/></td>
				<td align="left"><font id="ZhongYiBaoJian3" size="4">超重/肥胖或腹型肥胖者要饮食有节，辅以食疗：痰湿型肥胖者食用萝卜、海带、冬瓜、山楂、茶叶。气虚型肥胖者食用金针菇。</font></td>
			</tr>
			<tr>
				<td align="center"><input id="4" type="checkbox" name="BaoJianZhidaoContentCode" value="4"/></td>
				<td align="left"><font id="ZhongYiBaoJian4" size="4">吸烟者予以戒烟、冬令可适当进补梨、百合、蜂蜜、山药、大枣等滋补肾虚、温补肾阳。</font></td>
			</tr>
			<tr>
				<td align="center"><input id="5" type="checkbox" name="BaoJianZhidaoContentCode" value="5"/></td>
				<td align="left"><font id="ZhongYiBaoJian5" size="4">长期过量饮酒者予以戒酒、可服用中药白术、茯苓、泽泻、丝瓜络、广郁金、栀子等健脾化湿，清热化痰，活血通络，消除脂肪，消除疲劳，降低血脂。</font></td>
			</tr>
			<tr>
				<td align="center"><input id="6" type="checkbox" name="BaoJianZhidaoContentCode" value="6"/></td>
				<td align="left"><font id="ZhongYiBaoJian6" size="4">长期精神过度紧张辅以听轻音乐、交谈等情志疗法，宣泄情绪，避免紧张，保持乐观状态等情志疗法，以致喜则气缓、心情舒畅、气和志达、营卫通利。</font></td>
			</tr>
			<tr>
				<td align="center"><input id="7" type="checkbox" name="BaoJianZhidaoContentCode" value="7"/></td>
				<td align="left"><font id="ZhongYiBaoJian7" size="4">糖尿病者可选用中医非药物治疗：①针灸疗法：可选三阴交、足三里、阳池、外关、太冲、太溪、复溜、胰俞、脾俞、胃俞、肝俞、肾俞等穴；②拔罐疗法：可选背部肺俞、脾俞、肾俞或腹部中脘、天枢、水道等穴；③按摩疗法。 </font></td>
			</tr>
			<tr>
				<td align="center"><input id="8" type="checkbox" name="BaoJianZhidaoContentCode" value="8"/></td>
				<td align="left"><font id="ZhongYiBaoJian8" size="4">根据中医子午流注流经人体经络气血盛衰的关系，糖尿病患者在凌晨对胰岛素敏感，这时注射胰岛素用量小、效果好。甲苯磺丁脲宜上午8时口服，作用强而持久。</font></td>
			</tr>
		</tbody>
</table>

</div>
<!--选择行为干预的弹出层  -->
			</div>
		</div>
	</body>	
	</html>